/*
 *  $Id: Konda.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Lands {
    public class Konda: LandCard {
        public Konda(): base("001_a_l_konda") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Air;
            Value = 100;
            AddManaCost(ElementType.Air, 2);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Air, 2));
            affects.Add<KondaAura>();
        }

        private class KondaAura: Affects.FlightAura {
            public KondaAura(): base(true, false) {}

            public override string Id {
                get { return AffectManager.GetCardId<Konda>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new KondaAffect();
            }
        }

        private class KondaAffect: SpellAffect<Konda> {
            public KondaAffect() {
                Add(new Affects.FirstStrike());
                Add(new Affects.ModDamage(1));
                Add(new Affects.ModMaxHealth(-1));
            }
        }
    }
}
